import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import user from './user'
const store = createStore({
  plugins: [createPersistedState({
    // key: 'vuex',
    storage: sessionStorage,
    paths: ['user'] // 模块化之后，这里是需要数据持久化的模块名
  })],
  modules: {
    user
  }
  
})


export default store

// export default createStore({

   
// })